home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / armadilloknight.swf / scripts / frame_4 / PlaceObject2_79_930 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-05-08  |  558b  |  34 lines

  1. onClipEvent(enterFrame){
  2.    if(this._visible)
  3.    {
  4.       if(Key.isDown(88))
  5.       {
  6.          action = "close";
  7.       }
  8.    }
  9.    if(action == "open")
  10.    {
  11.       if(this._xscale < 100)
  12.       {
  13.          this._xscale += scaleStep;
  14.          this._yscale += scaleStep;
  15.       }
  16.       else
  17.       {
  18.          action = "none";
  19.       }
  20.    }
  21.    if(action == "close")
  22.    {
  23.       if(0 < this._xscale)
  24.       {
  25.          this._xscale -= scaleStep;
  26.          this._yscale -= scaleStep;
  27.       }
  28.       else
  29.       {
  30.          close();
  31.       }
  32.    }
  33. }
  34.